import request from '@/utils/request'

// 报警列表
export function fetchWarningList(params) {
  return request({
    url: '/maintenance/miWarning/queryList',
    method: 'get',
    params: {
      'pageIndex': params.pageIndex,
      'pageSize': params.pageSize
    },
    port: { ENV_PORT: 8005 },
    ajaxType2: 'reqGet'
  })
}

// 登记报警信息
export function warningRegiser(data) {
  return request({
      url: '/maintenance/miWarning/register',
      method: 'post',
      data: data,
      port: { ENV_PORT: 8005 },
      ajaxType2: 'reqPost'
  })
}


